import { Navigate, useRoutes } from 'react-router-dom';
import Music from '../views/Music';
import City from '../views/City';

const RouterView = () => {
    const routes = useRoutes([
        {
            path: "/",
            element: <Navigate to='/music'></Navigate>
        },
        {
            path: "/music",
            element: <Music />
        },
        {
            path: "/city",
            element: <City />
        }
    ])
    return routes
}

export default RouterView